//
//  bolo_SingleDemo.m
//  NXLib
//
//  Created by AK on 14-3-24.
//  Copyright (c) 2014年 AK. All rights reserved.
//

#import "bolo_SingleDemo.h"


@implementation bolo_SingleDemo

+ (bolo_SingleDemo *)singleDemo
{
    static bolo_SingleDemo * singleInstance = nil;
    
    static dispatch_once_t pred;
    dispatch_once(&pred, ^{
        // double, make sure though.
        if (singleInstance == nil)
        {
            singleInstance = [[bolo_SingleDemo alloc] init];
        }
        
    });
    
    return singleInstance;
}

- (id)init
{

    if (self = [super init])
    {
        
    }
    return self;
}

- (void)say
{
    NSLog(@"make love");
}

@end
